/**
 * Historico de alteração
 *
 * Data         Autor   Descrição
 * 24/10/2010   Jerry   Criação do cabeçalho.
 *
 */

package railbee.banco.dao;

import railbee.banco.dto.*;
import railbee.banco.exceptions.*;

public interface TremZigbeeDao
{
	/** 
	 * Inserts a new row in the trem_zigbee table.
	 */
	public TremZigbeePk insert(TremZigbee dto) throws TremZigbeeDaoException;

	/** 
	 * Updates a single row in the trem_zigbee table.
	 */
	public void update(TremZigbeePk pk, TremZigbee dto) throws TremZigbeeDaoException;

	/** 
	 * Deletes a single row in the trem_zigbee table.
	 */
	public void delete(TremZigbeePk pk) throws TremZigbeeDaoException;

	/** 
	 * Returns the rows from the trem_zigbee table that matches the specified primary-key value.
	 */
	public TremZigbee findByPrimaryKey(TremZigbeePk pk) throws TremZigbeeDaoException;

	/** 
	 * Returns all rows from the trem_zigbee table that match the criteria 'id_seq_trem_xbee = :idSeqTremXbee'.
	 */
	public TremZigbee findByPrimaryKey(int idSeqTremXbee) throws TremZigbeeDaoException;

	/** 
	 * Returns all rows from the trem_zigbee table that match the criteria ''.
	 */
	public TremZigbee[] findAll() throws TremZigbeeDaoException;

	/** 
	 * Returns all rows from the trem_zigbee table that match the criteria 'id_seq_trem_xbee = :idSeqTremXbee'.
	 */
	public TremZigbee[] findWhereIdSeqTremXbeeEquals(int idSeqTremXbee) throws TremZigbeeDaoException;

	/** 
	 * Returns all rows from the trem_zigbee table that match the criteria 'trem = :trem'.
	 */
	public TremZigbee[] findWhereTremEquals(String trem) throws TremZigbeeDaoException;

	/** 
	 * Returns all rows from the trem_zigbee table that match the criteria 'enderecoxbee = :enderecoxbee'.
	 */
	public TremZigbee[] findWhereEnderecoxbeeEquals(String enderecoxbee) throws TremZigbeeDaoException;

	/** 
	 * Sets the value of maxRows
	 */
	public void setMaxRows(int maxRows);

	/** 
	 * Gets the value of maxRows
	 */
	public int getMaxRows();

	/** 
	 * Returns all rows from the trem_zigbee table that match the specified arbitrary SQL statement
	 */
	public TremZigbee[] findByDynamicSelect(String sql, Object[] sqlParams) throws TremZigbeeDaoException;

	/** 
	 * Returns all rows from the trem_zigbee table that match the specified arbitrary SQL statement
	 */
	public TremZigbee[] findByDynamicWhere(String sql, Object[] sqlParams) throws TremZigbeeDaoException;

}
